<div id="primarycontent">

	<!-- primary content start -->

	<div class="post">
		<div class="header">
			<h3>Listing categories</h3>
		</div>
		<div class="content">

			<table>
			  <tr>
			    <th>Name</th>
			    <th>Credit</th>
			  </tr>
			
			<% for category in @categories %>
			  <tr>
			    <td><%=h category.name %></td>
			    <td><%=h category.credit %></td>
			    <td><%= link_to 'Show', category %></td>
			    <td><%= link_to 'Edit', edit_category_path(category) %></td>
			    <td><%= link_to 'Destroy', category, :confirm => 'Are you sure?', :method => :delete %></td>
			  </tr>
			<% end %>
			</table>
			
			<br />
			
			<%= link_to 'New category', new_category_path %>
			
			<br />
			<br />
		</div>			
		<div class="footer">
		</div>
	</div>

	<!-- primary content end -->

</div>